home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 73 < prev    next >
Encoding:
Text File  |  1996-08-05  |  867 b   |  32 lines

  1. Newsgroups: comp.lang.c
  2. Path: news.kei.com!wang!news
  3. From: emild@cs.technion.ac.il (Kohn Emil Dan)
  4. Subject: Re: Intel CPU determination in C? 
  5. Organization: Technion, Israel Institute of Technology
  6. Date: Sun, 31 Dec 1995 14:19:49 GMT
  7. Message-ID: <Pine.SV4.3.91-heb-2.04.951231161631.21129A-100000@cs.technion.ac.il>
  8. References: <1995Dec30.024206.1@vaxa> 
  9. Sender: news@wang.com
  10.  
  11.  
  12.  
  13. On 30 Dec 1995 drosenblum1@vaxa.hofstra.edu wrote:
  14.  
  15. > Does anyone have/know of any Turbo C, Borland C or Visual C code that
  16. > determines the type of CPU a computer has?
  17.  
  18. You can't do such thing in C. Routines determining the CPU type are 
  19. typically written in assembly language. Try Michael Tischer's book 
  20. "PC-Intern System programming". You will find there an assembly language 
  21. routine that does exactly what you want.
  22.  
  23. Best regards, and 
  24.  
  25.         A happy new year!
  26.  
  27.  
  28.                                 Emil
  29.